package com.czy.myexception;

/**
 * 自定义异常类
 */
public class CustomException extends RuntimeException {
    private int code; //自定义错误码
    private String msg; //自定义错误信息

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public CustomException(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
